(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/cateitem/cateitem" ], {
    "05d0": function(t, e, n) {
        "use strict";
        var a = n("fab4");
        n.n(a).a;
    },
    "6c1a": function(t, e, n) {
        "use strict";
        (function(t) {
            function e(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            n("4e1e"), e(n("66fd")), t(e(n("9d0a")).default);
        }).call(this, n("543d").createPage);
    },
    "9aee": function(t, e, n) {
        "use strict";
        (function(t) {
            var n;
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var a = {
                data: function() {
                    return {
                        bgColor: "",
                        textColor: "",
                        graceFullLoading: !0,
                        color: 0,
                        bottomColor: "",
                        screenHeight: 0,
                        scrollLeft: "c0",
                        title: "",
                        tabCurrentIndex: 0,
                        ordernum: 0,
                        attach: "",
                        ccateList: [],
                        itemList: [],
                        productList: [],
                        loadingData: [],
                        clickNum: [],
                        page: [],
                        pageMore: [],
                        userWxInfo: {},
                        iskefu: 2,
                        showBack: !1,
                        parentId: 0,
                        isShowALL: 0
                    };
                },
                onLoad: function(e) {
                    var n = this, a = getCurrentPages();
                    this.showBack = a.length > 1, this.color = e.color, e.ordernum && (this.tabCurrentIndex = parseInt(e.ordernum) + 1, 
                    this.ordernum = parseInt(e.ordernum) + 1);
                    var r = e.parent;
                    this.parentId = e.parent;
                    var i = this.$xSign.sign("v4cateitem_more");
                    this.$xRequest.request({
                        url: "entry/wxapp/v4cateitem_more",
                        data: {
                            pid: r,
                            xgsign: i,
                            op: "cateitem"
                        },
                        success: function(t) {
                            n.graceFullLoading = !1;
                            var e = JSON.parse(n.$Decrypt(t.data.data));
                            0 == t.data.errno && (n.title = e.title, n.bottomColor = e.color, n.bgColor = e.bgColor, 
                            n.textColor = e.textColor, n.ccateList = e.ccate, n.itemList = e.itemlist, n.productList = e.productList, 
                            n.loadingData = e.loadType, n.clickNum = e.clicknum, n.page = e.page, n.pageMore = e.pageMore, 
                            n.attach = e.attach, n.iskefu = e.iskefu, n.loadData(1));
                        },
                        fail: function(e) {
                            t.showToast({
                                title: e.data.message,
                                icon: "none"
                            }), setTimeout(function() {
                                t.navigateBack({
                                    delta: 1
                                });
                            }, 2e3);
                        }
                    });
                },
                methods: {
                    tabClick: function(t) {
                        this.tabCurrentIndex = t.currentTarget.dataset.cindex;
                    },
                    changeTab: function(t) {
                        this.tabCurrentIndex = t.target.current;
                        var e = t.target.current;
                        this.scrollLeft = "c" + e, 0 == this.clickNum[this.tabCurrentIndex] && this.loadData();
                    },
                    loadData: function(t) {
                        var e = this;
                        if (this.graceFullLoading = !0, null == this.ccateList || null == this.ccateList) return this.graceFullLoading = !1, 
                        !1;
                        if (1 == this.pageMore[this.tabCurrentIndex]) return this.graceFullLoading = !1, 
                        !1;
                        this.loadingData.splice(this.tabCurrentIndex, 1, 1);
                        var n = this.$xSign.sign("v4cateitem_more");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4cateitem_more",
                            data: {
                                page: this.page[this.tabCurrentIndex],
                                ccate: this.ccateList[this.tabCurrentIndex].id,
                                xgsign: n,
                                pid: this.parentId
                            },
                            success: function(t) {
                                var n = JSON.parse(e.$Decrypt(t.data.data));
                                if (1 == n.info && (e.pageMore[e.tabCurrentIndex] = 1, e.loadingData.splice(e.tabCurrentIndex, 1, 2)), 
                                0 == n.info) {
                                    var a = n.itemlist;
                                    e.tempItem = e.itemList[e.tabCurrentIndex].concat(n.itemlist), e.itemList[e.tabCurrentIndex] = e.tempItem, 
                                    a.length < n.pagesize ? (e.pageMore[e.tabCurrentIndex] = 1, e.loadingData.splice(e.tabCurrentIndex, 1, 2)) : e.loadingData.splice(e.tabCurrentIndex, 1, 0), 
                                    e.clickNum[e.tabCurrentIndex]++, e.page[e.tabCurrentIndex] = n.page + 1;
                                }
                                e.graceFullLoading = !1;
                            },
                            fail: function(t) {}
                        });
                    },
                    toItemUrl: function(e) {
                        var n = e.currentTarget.dataset.itemid;
                        t.navigateTo({
                            url: "../item/item?itemid=" + n
                        });
                    }
                },
                computed: {
                    style: function() {
                        n = this;
                        var e = "", a = 0;
                        return t.getSystemInfo({
                            success: function(r) {
                                var i = r.statusBarHeight, c = n.ccateList;
                                a = c.length <= 2 ? r.screenHeight - i - 44 : r.screenHeight - i - 44 - t.upx2px(160), 
                                e = "height:".concat(a, "px;");
                            }
                        }), e;
                    },
                    viewHeight: function() {
                        var e = t.getSystemInfoSync(), n = e.statusBarHeight + t.upx2px(90), a = e.screenHeight - n - t.upx2px(100);
                        return "height:".concat(a, "px;");
                    }
                }
            };
            e.default = a;
        }).call(this, n("543d").default);
    },
    "9d0a": function(t, e, n) {
        "use strict";
        n.r(e);
        var a = n("ddc8"), r = n("a63c");
        for (var i in r) "default" !== i && function(t) {
            n.d(e, t, function() {
                return r[t];
            });
        }(i);
        n("05d0");
        var c = n("f0c5"), o = Object(c.a)(r.default, a.b, a.c, !1, null, null, null, !1, a.a, void 0);
        e.default = o.exports;
    },
    a63c: function(t, e, n) {
        "use strict";
        n.r(e);
        var a = n("9aee"), r = n.n(a);
        for (var i in a) "default" !== i && function(t) {
            n.d(e, t, function() {
                return a[t];
            });
        }(i);
        e.default = r.a;
    },
    ddc8: function(t, e, n) {
        "use strict";
        n.d(e, "b", function() {
            return r;
        }), n.d(e, "c", function() {
            return i;
        }), n.d(e, "a", function() {
            return a;
        });
        var a = {
            gracePage: function() {
                return n.e("graceUI/components/gracePage").then(n.bind(null, "1915"));
            },
            graceFullLoading: function() {
                return n.e("graceUI/components/graceFullLoading").then(n.bind(null, "7669"));
            },
            graceEmptyNew: function() {
                return n.e("graceUI/components/graceEmptyNew").then(n.bind(null, "fb2f"));
            },
            divider: function() {
                return n.e("components/divider/divider").then(n.bind(null, "bdb7"));
            },
            graceLoading: function() {
                return n.e("graceUI/components/graceLoading").then(n.bind(null, "93a5"));
            }
        }, r = function() {
            this.$createElement, this._self._c;
        }, i = [];
    },
    fab4: function(t, e, n) {}
}, [ [ "6c1a", "common/runtime", "common/vendor" ] ] ]);